.NET: Add Magentic Orchestration Sample#5823
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/8799740a-74d8-4100-b6f6-76dcd0418c87 Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/8799740a-74d8-4100-b6f6-76dcd0418c87 Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
lokitoth
May 13, 2026 19:18
View session
Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/caa3488f-d6f5-494d-a928-a45d6a98b3c3 Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/ffab38e2-37f9-4643-a782-20680573965a Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com>
SergeyMenshykh
approved these changes
May 22, 2026
peibekwe
reviewed
May 22, 2026
peibekwe
approved these changes
May 22, 2026
peibekwe
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Ports the Python Magentic multi-agent orchestration sample to .NET, giving .NET developers a ready-to-run example of the
MagenticWorkflowBuilderpattern for coordinating specialized agents on complex analytical tasks.Description
New Magentic Orchestration Sample
Adds
dotnet/samples/03-workflows/Orchestration/Magentic/— a .NET port of the Pythonmagentic.pyworkflow sample. The sample builds aMagenticWorkflowBuilderorchestration with three roles:HostedCodeInterpreterToolfor quantitative analysisKey aspects demonstrated:
MagenticWorkflowBuilder(max rounds, stalls, resets)PauseIfInteractivethat skips when stdin or stdout is redirected (CI-friendly)Closes #5771
Other Changes
Magentic.csprojin the solution file03-workflows/README.mdindexContribution Checklist
[ ] Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.